package com.cy.study.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cy.study.entity.MediaEntity;
import com.cy.study.req.MediaAddReq;
import com.cy.study.req.MediaDeleteReq;
import com.cy.study.req.MediaListReq;

public interface MediaService extends IService<MediaEntity> {

    /**
     * 管理员添加小节
     * @param req
     * @return
     */
    Integer addMedia(MediaAddReq req);


    /**
     * 管理员删除小节
     * @param req
     */
    void deleteMedia(MediaDeleteReq req);

    /**
     * 用户获取小节
     * @param req
     * @return
     */
    Page<MediaEntity> mediaList(MediaListReq req);
}
